/**
 * 全局样式
 */
html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: @color-text-1;
}

/* 内容栏 */
.main-content {
  height: 100%;
  box-sizing: border-box;
  overflow: auto;
  padding: @size-5;
  padding-top: 0 !important;
}

/* 弹窗样式 */
.arco-modal-header {
  background: linear-gradient(90deg, @primary-6, @primary-5);
  border-radius: @border-radius-medium @border-radius-medium 0 0;
  .arco-modal-title,
  .arco-modal-close-btn {
    color: @color-white !important;
  }
  .arco-modal-close-btn:hover {
    color: @color-text-2 !important;
  }
}
.arco-modal-body {
  max-height: 740px;
}

.arco-tree-node-title {
  margin-left: -10px;
}

/* 抽屉样式 */
.arco-drawer-header {
  background: linear-gradient(90deg, @primary-6, @primary-5);
  .arco-drawer-title,
  .arco-drawer-close-btn {
    color: @color-white !important;
  }
  .arco-drawer-close-btn:hover {
    color: @color-text-2 !important;
  }
}

/*定义滚动条宽高及背景，宽高分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 7px; /*对垂直流动条有效*/
  height: 7px; /*对水平流动条有效*/
}

/* 定义滑块颜色、内阴影及圆角 */
::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background-color: rgba(209, 213, 218, 1);
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(156, 164, 174, 1);
}

/* 禁用原生密码输入框小眼睛 */
input[type='password']::-ms-reveal {
  display: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

/* 弹窗转标签页样式 */
.not-modal {
  width: calc(100% - @size-5);
  margin: 0 10px;
  height: calc(100% - 110px);
  background: var(--color-bg-2);
  text-align: center;
  > div {
    width: 500px;
    margin: 0 auto;
  }
  footer {
    width: 100%;
    float: none;
    text-align: center;
    background: var(--color-bg-2);
    padding-bottom: 68px;
  }
}

/* 标签字体样式 */
.main-content .arco-input-tag .arco-input-tag-inner .arco-input-tag-tag,
.main-content .arco-tag {
  margin-right: 0;
  font-size: 14px;
}

/* 表格统一居中风格 */
.arco-table .arco-table-cell {
  justify-content: center;
}
.arco-table-td-content {
  text-align: center;
}
/* 表格操作列按钮内边距 */
.arco-btn-size-medium.operate-item {
  padding: 0;
}
/* 表格中的文件样式 */
.table-file-item.arco-link {
  width: 100%;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 大标题 */
h2.title {
  font-size: @font-size-title-2;
  font-weight: normal;
  background: var(--color-bg-1);
  height: @size-14;
  line-height: @size-14;
  padding: 0 @size-3 0 @size-5;
  margin: 0 0 @size-5;
  color: @color-text-1;
  .fr {
    margin-top: -1px;
  }
}

/* 详情页内容区域设置高度，滚动时大标题（h2.title）不滚动 */
.detail-content {
  height: calc(100% - @size-19);
  overflow-y: auto;
}

/* 左边边框5px主色标题 */
h3.title {
  font-weight: normal;
  background: var(--color-bg-2);
  color: @color-text-1;
  font-size: @font-size-body-3;
  line-height: @size-11;
  padding: 0 @size-3 0 15px;
  margin: @size-5 0;
  border-left: 5px solid rgb(var(--arcoblue-6));
  position: relative;
  .right-button {
    position: absolute;
    right: @size-3;
    top: 0;
    bottom: 0;
    margin: auto;
  }
}

h3.title:first-child {
  margin-top: 0;
}

/* 描述列表标题样式 */
h3.center-title {
  font-size: @font-size-title-1;
  font-weight: normal;
  background: var(--color-bg-2);
  color: @color-text-1;
  margin: 0 0 @size-5;
  line-height: @size-7;
  text-align: center;
}

/* 相邻按钮设置间距12px */
.arco-btn ~ .arco-btn {
  margin-left: @size-3;
}

/* 相邻标签设置间距8px */
.arco-tag ~ .arco-tag {
  margin-left: @size-2;
}
.arco-tag:first-child {
  margin-left: @size-2;
}

/* 设置loading居中显示 */
.content .arco-spin {
  display: block;
  height: 100%;
  overflow: hidden;
}

/**
 * 常用class集合
 */
// 背景渐变（水平）
.bg-gradient-h {
  background: linear-gradient(90deg, @primary-6, @primary-5);
}

/* 背景渐变（垂直） */
.bg-gradient-v {
  background: linear-gradient(180deg, @primary-6, @primary-5);
}

/* 鼠标手指 */
.pointer {
  cursor: pointer;
}

/* margin */
.margin-l-1 {
  margin-left: @size-3;
}

.margin-l-2 {
  margin-left: @size-5;
}

.margin-r-1 {
  margin-right: @size-3;
}

.margin-r-2 {
  margin-right: @size-5;
}

.margin-t-1 {
  margin-top: @size-3;
}

.margin-t-2 {
  margin-top: @size-5;
}

.margin-b-1 {
  margin-bottom: @size-3;
}

.margin-b-2 {
  margin-bottom: @size-5;
}

/* padding */
.padding-l-1 {
  padding-left: @size-3;
}

.padding-l-2 {
  padding-left: @size-5;
}

.padding-r-1 {
  padding-right: @size-3;
}

.padding-r-2 {
  padding-right: @size-5;
}

.padding-t-1 {
  padding-top: @size-3;
}

.padding-t-2 {
  padding-top: @size-5;
}

.padding-b-1 {
  padding-bottom: @size-3;
}

.padding-b-2 {
  padding-bottom: @size-5;
}

.line-height-32 {
  line-height: 32px;
}

/* 左右浮动 */
.fr {
  float: right;
}

.fl {
  float: left;
}

/* 居左 */
.tl {
  text-align: left;
}
.tr {
  text-align: right;
}
.tc {
  text-align: center;
}
